package com.huawei.gamebox.plugin.gameservice.bean;

import com.huawei.appgallery.jsonkit.api.JsonBean;
import com.huawei.appgallery.jsonkit.api.annotation.FieldSecurity;
import com.huawei.appgallery.jsonkit.api.annotation.SecurityLevel;
import o.Logger;
import o.dof;
import org.json.JSONObject;

public class RealNameParam extends JsonBean {
    private static final String TAG = "RealNameParam";
    private int isShowRealName_;
    private String popADUrl_;
    private int realNameType_;
    @FieldSecurity(security = SecurityLevel.PRIVACY)
    private String realName_;
    private long ts_;

    public long ˋ() {
        return this.ts_;
    }

    public int ॱ() {
        return this.isShowRealName_;
    }

    public int ˏ() {
        return this.realNameType_;
    }

    public String ˎ() {
        return this.popADUrl_;
    }

    public RealName ˊ() {
        if (dof.ॱ(this.realName_)) {
            return null;
        }
        RealName realName = new RealName();
        try {
            realName.fromJson(new JSONObject(this.realName_));
            return realName;
        } catch (Exception e) {
            Logger.e(TAG, "getRealNameParam exception");
            return realName;
        }
    }
}
